package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;


/**
 * The persistent class for the EMP_INFOMATION database table.
 * 
 */
@Entity
@Table(name="EMP_INFOMATION")
@NamedQuery(name="EmpInfomation.findAll", query="SELECT e FROM EmpInfomation e")
public class EmpInfomation implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="EMP_ID")
	private long empId;

	@Column(name="DEPT_DESCRIBE")
	private String deptDescribe;

	@Column(name="DEPT_ID")
	private BigDecimal deptId;

	@Column(name="DEPT_NAME")
	private String deptName;

	@Column(name="EMP_AGE")
	private BigDecimal empAge;

	@Column(name="EMP_EMAIL")
	private String empEmail;

	@Column(name="EMP_HEAD")
	private String empHead;

	@Column(name="EMP_NAME")
	private String empName;

	@Column(name="EMP_PASSWORD")
	private String empPassword;

	@Column(name="EMP_QQ")
	private String empQq;

	@Column(name="EMP_SEX")
	private String empSex;

	@Column(name="EMP_STATUS")
	private String empStatus;

	@Column(name="EMP_TEL")
	private String empTel;

	@Column(name="EMP_USERNAME")
	private String empUsername;

	//bi-directional many-to-one association to EmpAndCharacter
	@OneToMany(mappedBy="empInfomation")
	private List<EmpAndCharacter> empAndCharacters;

	public EmpInfomation() {
	}

	public long getEmpId() {
		return this.empId;
	}

	public void setEmpId(long empId) {
		this.empId = empId;
	}

	public String getDeptDescribe() {
		return this.deptDescribe;
	}

	public void setDeptDescribe(String deptDescribe) {
		this.deptDescribe = deptDescribe;
	}

	public BigDecimal getDeptId() {
		return this.deptId;
	}

	public void setDeptId(BigDecimal deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return this.deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public BigDecimal getEmpAge() {
		return this.empAge;
	}

	public void setEmpAge(BigDecimal empAge) {
		this.empAge = empAge;
	}

	public String getEmpEmail() {
		return this.empEmail;
	}

	public void setEmpEmail(String empEmail) {
		this.empEmail = empEmail;
	}

	public String getEmpHead() {
		return this.empHead;
	}

	public void setEmpHead(String empHead) {
		this.empHead = empHead;
	}

	public String getEmpName() {
		return this.empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getEmpPassword() {
		return this.empPassword;
	}

	public void setEmpPassword(String empPassword) {
		this.empPassword = empPassword;
	}

	public String getEmpQq() {
		return this.empQq;
	}

	public void setEmpQq(String empQq) {
		this.empQq = empQq;
	}

	public String getEmpSex() {
		return this.empSex;
	}

	public void setEmpSex(String empSex) {
		this.empSex = empSex;
	}

	public String getEmpStatus() {
		return this.empStatus;
	}

	public void setEmpStatus(String empStatus) {
		this.empStatus = empStatus;
	}

	public String getEmpTel() {
		return this.empTel;
	}

	public void setEmpTel(String empTel) {
		this.empTel = empTel;
	}

	public String getEmpUsername() {
		return this.empUsername;
	}

	public void setEmpUsername(String empUsername) {
		this.empUsername = empUsername;
	}

	public List<EmpAndCharacter> getEmpAndCharacters() {
		return this.empAndCharacters;
	}

	public void setEmpAndCharacters(List<EmpAndCharacter> empAndCharacters) {
		this.empAndCharacters = empAndCharacters;
	}

	public EmpAndCharacter addEmpAndCharacter(EmpAndCharacter empAndCharacter) {
		getEmpAndCharacters().add(empAndCharacter);
		empAndCharacter.setEmpInfomation(this);

		return empAndCharacter;
	}

	public EmpAndCharacter removeEmpAndCharacter(EmpAndCharacter empAndCharacter) {
		getEmpAndCharacters().remove(empAndCharacter);
		empAndCharacter.setEmpInfomation(null);

		return empAndCharacter;
	}

}